import request from '@/utils/request'

// 查询联系记录统计列表
export function listContactStats(query) {
  return request({
    url: '/system/customer/contact/stats/list',
    method: 'get',
    params: query
  })
}

// 获取联系记录统计数据
export function getContactStatistics(query) {
  return request({
    url: '/system/customer/contact/stats',
    method: 'get',
    params: query
  })
}

// 获取联系记录统计数据
export function getContactStats(query) {
  return request({
    url: '/system/customer/contact/stats',
    method: 'get',
    params: query
  })
}

// 获取联系记录列表
export function listContactRecords(query) {
  return request({
    url: '/system/customer/contact/list',
    method: 'get',
    params: query
  })
}

// 获取负责人统计数据
export function getHandlerContactStats(query) {
  console.log('调用负责人统计API，参数:', query);
  return request({
    url: '/system/customer/contact/stats/handler',
    method: 'get',
    params: query
  })
}

// 获取联系总量趋势数据
export function getContactVolumeTrend(query) {
  return request({
    url: '/system/customer/contact/trend',
    method: 'get',
    params: query
  })
}

// 获取跟进人联系记录统计数据
export function getFollowUpPersonStats(query) {
  return request({
    url: '/system/customer/contact/stats/followup-stats',
    method: 'get',
    params: query
  })
}

// 获取负责客户数量
export function getResponsibleCustomerCount(query) {
  return request({
    url: '/system/customer/responsible/count',
    method: 'get',
    params: query
  })
} 